package com.example.cloud.model.statistics;

import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * Created by sl on 2019/4/24.
 * 信用分记录
 */
@Entity(name = "credit_items")
@Data
@EqualsAndHashCode(callSuper = false)
public class CreditItems extends CommonModel {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	  @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    // 信用名称
    @Column(name = "credit_name")
    private String creditName;
    // 信用类型 1：加分 0：减分
    @Column(name = "credit_type")
    private int creditType;
    // 分值
    @Column(name = "credit_score")
    private double creditScore;
    // 账户编号
    @Column(name = "account_id")
    private Long accountId;
    // 组织机构编号
    @Column(name = "organ_id")
    private Long organId;
    // 组织机构名称
    @Column(name = "organ_name")
    private String organName;
}
